<template>
  <div>
    <div id="echart">
      
    </div>
  </div>
</template>

<script>
import echarts from 'echarts'
import airSeacrh from '../common/airSearch'
import { loadBMap } from '../common/map.js'
require('echarts/extension/bmap/bmap');

export default {
  mounted (){
    this.$nextTick(() => {
　　loadBMap("Xwon40Cdbca1KEhPQmuCzak50kDT9ODR").then(() => {
   　　console.log(11);
   　})
})
     this.drawEcharts()
   },

  data() {
    return {
      activeName: "first",
      

    };
    
    
  },
  methods: {
  
    drawEcharts () {
      //今日统计
      let mychart = echarts.init(document.getElementById('echart'))

      mychart.setOption(airSeacrh);
    

    }
  },

};
</script>

<style scoped>
  #echart{
    width: 100%;
    height: 800px;
  }

 
  
</style>